CXX      := g++
CXXFLAGS := -std=c++11 -I../build/release-install-cpp11/include
LDFLAGS  := -L../build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -lpthread -pthread

TARGETS  := server client
SRCS     := server.cc client.cc

all: $(TARGETS)

server: server.cc
	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)

client: client.cc
	$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)

clean:
	rm -f $(TARGETS)

.PHONY: all clean